//
//  UIDevice+IdentifierAddition.h
//  duzhoumo
//
//  Created by dzmmac on 15/7/28.
//  Copyright (c) 2015年 dzmmac. All rights reserved.
//

#import <UIKit/UIKit.h>

@interface UIDevice (IdentifierAddition)

/**
 *  获取广告表示符
 *
 *  @return 标识符字符串
 */
+ (NSString *)getIdfa;

/*
 * @method uniqueDeviceIdentifier
 * @description use this method when you need a unique identifier in one app.
 * It generates a hash from the MAC-address in combination with the bundle identifier
 * of your app.
 */

- (NSString *) uniqueDeviceIdentifier;

/*
 * @method uniqueGlobalDeviceIdentifier
 * @description use this method when you need a unique global identifier to track a device
 * with multiple apps. as example a advertising network will use this method to track the device
 * from different apps.
 * It generates a hash from the MAC-address only.
 */

- (NSString *) uniqueGlobalDeviceIdentifier;

/**
 *  获取mac地址
 *
 *  @return mac地址字符串
 */
+ (NSString *)macString;

/**
 *  获取设备的标识（不唯一每次启动都会改变）
 *
 *  @return 设备的表示
 */
- (NSString *)idfvString;

/**
 *  获取网络供应商名字
 *
 *  @return 网络供应商名字
 */
+ (NSString *)carrierName;

/**
 *  获取设备平台
 *
 *  @return 设备平台
 */
+ (NSString *)getDevicePlatform;

/**
 *  判断手机是否越狱
 *
 *  @return 1 越狱 0  没越狱
 */
+ (NSString *)isJailBreak;

@end
